

#ifndef	INTERRUPTION_DRIVER_H
#define  INTERRUPTION_DRIVER_H

#include <p18f4550.h>
#include <delays.h>
#include "GPD_Driver.h"
#include "stdtypedef.h"
#include "Motores_Driver.h"
#include "Buttons_Driver.h"
#include "CheckTime.h"


extern enum Estados
{
	IDLE,
	Check500ms,
	Check1000ms,
	StartMotor,
	Scroll_1,
	Scroll_2,
} State;

extern enum EstadoBotones
{
	SinPresionar,
	UpPresionado,
	DownPresionado
} Botones;

//Prototyping Functions
void initExtInt(void);


#define SelectorUnipolar	((GPDin('B') & 0x40) >> 6)
#define SelectorBipolar	((GPDin('B') & 0x80) >> 7)
#define Led			PORTDbits.RD6

#endif